import plotly.express as px
import pandas
df = px.data.gapminder()
df1 = df.query("country == 'United States'")

print(df1.columns)
fig = px.line(df1,
                 x="year",
                 y="lifeExp",
                 # color="continent",
                 title="A Plotly Express Figure",
              markers=True,
              # symbol="continent",
              line_shape="linear"
                 )
# ['linear', 'hv', 'vh', 'hvh', 'vhv']
df2 = df.query("continent == 'Oceania'")
fig = px.bar(df2,
                 x="year",
                 y="pop",
             color="country",
             barmode="group"
                 )
df = px.data.tips()
print(df.columns)
fig = px.pie(df,values="total_bill",names="day"
             )

fig.show()

